//
//  ConfirmViewCell.m
//  ForestPack
//
//  Created by 骆锴 on 2018/7/18.
//  Copyright © 2018年 郑洲. All rights reserved.
//

#import "ConfirmViewCell.h"

@implementation ConfirmViewCell

+ (ConfirmViewCell *)cellWithTableView:(UITableView *)tableView andIndexPath:(NSIndexPath *)indexPath{
    static NSString *cellID = @"confirmcell";
    ConfirmViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellID];
    if (cell == nil) {
        cell = [[ConfirmViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellID];
        cell.backgroundColor = [UIColor whiteColor];
        [cell createSubView];
    }

    return cell;
}

-(void)createSubView{
    UIView *bg = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT-ScreenX375(64))];
    
    
    UILabel *warning = [[UILabel alloc] initWithFrame:CGRectMake(ScreenX375(13), ScreenX375(12), ScreenX375(336), ScreenX375(13))];
    warning.textAlignment = NSTextAlignmentCenter;
    warning.text = @"请确保信息正确无误,以便印前人员与您及时联系确认印刷需求";
    warning.textColor = ThemeColor;
    warning.font = Kfont(13);
    [bg addSubview:warning];

    UIButton *submit = [[UIButton alloc] initWithFrame:CGRectMake(ScreenX375(13), ScreenX375(84), ScreenX375(349), ScreenX375(44))];
    submit.layer.cornerRadius = 22;
    submit.backgroundColor = ThemeColor;
    [submit setTitle:@"提交" forState:UIControlStateNormal];
    [bg addSubview:submit];
    
    [self addSubview:bg];
}
@end

